<table>
    <thead>
        <tr>
            <th>月份</th>
            <th>仓库进仓原材料金额</th>
            <th>仓库生成商品金额</th>
            <th>总售出价格</th>
            <th></th>
        </tr>
    </thead>
    <tbody>
    @foreach($input as $k => $v)
        <tr>
            <td>{{$v['date']}}月</td>
            <td>{{$v['price'] / 100}}</td>
            {{--  判断出仓原料是否为空 --}}
            <td>{{isset($makeGoods[$k]['date'])?$makeGoods[$k]['price'] / 100 :0}}</td>
            <td>{{isset($output[$v['date']])?$output[(string)$v['date']]:0}}</td>
            <td>0</td>
        </tr>
    @endforeach
        <tr>
            <td>合计</td>
            <td>{{$input->sum('price') / 100}}</td>
            <td>{{$makeGoods->sum('price') / 100}}</td>
        </tr>
    </tbody>
</table>